package com.jake.microservice.provider.jpa.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "user")
public class UserEntity {

    @Id
    @JsonIgnore
    private Integer uid;

    private String username;

    private String password;

    @ManyToOne
    @JoinColumn(name = "company_id")
    private CompanyEntity company;

    private String position;
}
